<?php defined('SYSPATH') or die('No direct script access.');

Event::clear('system.404', array('Kohana', 'show_404'));

Event::add('system.403', 'error_403');
Event::add('system.404', 'error_404');

function error_403() {
	$controler = new Errors_Controller();
	$controler->error_403();
	die();
}

function error_404() {
	$controler = new Errors_Controller();
	$controler->error_404();
	die();
}

?>